<div class="project">
  <div class='head' >
    <div class='title'>
      <div>◆<%= project.name %></div>
      <div id='project_<%= project %>_tools' class='tools' style='display:none;'>
        <a href='#' class='base_i'>修改</a>
        <a href='#' class='base_i'>删除</a>
        <a href='#' class='base_i'>▶创建阶段</a>
      </div>
    </div>
    <div class='overviews'>
      <div class='paying'>
        <a href='#' class='base'>▶待发</a>：<b>￥</b><small><%= number_with_precision designer.paying_amount_by_project_id(project.id), :precision => 1 %></small>
      </div>
      <div class='paused'>
        <a href='#' class='base'>▶暂缓</a>：<b>￥</b><small><%= number_with_precision designer.paused_amount_by_project_id(project.id), :precision => 1 %></small>
      </div>
      <div class='payed'>
        <a href='#' class='base'>▶已发</a>：<b>￥</b><small><%= number_with_precision designer.payed_amount_by_project_id(project.id), :precision => 1 %></small>
      </div>
    </div>
  </div>
  <div class='new_or_edit new_or_edit_stage' style='display:none'>
    <div class='stage_form'>
    </div>
    <div class='buttons'>
      <a href='#' class='save button'>保存</a> <a href='#' class='go_back button'>返回</a>
    </div>
  </div>
  <div class='body'>
    <div class="paying">
    <% project.paying_stages.each do |stage| %>
      <%= render :file => 'designers/stage_in_show.html', :locals => { :project => project, :stage => stage, :designer => designer } %>
    <% end if only_payings? %>
    </div>
    <div class='paused'>
    <% project.paused_stages.each do |stage| %>
      <%= render :file => 'designers/stage_in_show.html', :locals => { :project => project, :stage => stage, :designer => designer } %>
    <% end if only_pauseds? %>
    </div>
    <div class='payed'>
    <% project.payed_stages(params[:stat]).each do |stage| %>
      <%= render :file => 'designers/stage_in_show.html', :locals => { :project => project, :stage => stage, :designer => designer } %>
    <% end if only_payeds? %>
    </div>
  </div>
</div>